package com.ecplatform.user;

import com.ecplatform.common.config.JwtProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@SpringBootApplication(scanBasePackages = "com.ecplatform.user")
@ComponentScan(basePackages = {"com.ecplatform.user", "com.ecplatform.common","com.ecplatform.api"}) // 扫描包,能够找到其他包下的bean
@MapperScan(basePackages = "com.ecplatform.user.mapper") // 扫描mapper包
@EnableAspectJAutoProxy
@EnableConfigurationProperties(JwtProperties.class)
public class UserApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }
}
